package com.team.coupon.api.factory;

import com.team.common.core.web.domain.AjaxResult;
import com.team.coupon.api.RemoteCouponService;
import com.team.coupon.api.RemoteUserCouponService;
import com.team.coupon.api.domain.BizConsumeCouponDto;
import com.team.coupon.api.domain.BizUserCouponDto;
import org.springframework.cloud.openfeign.FallbackFactory;

public class RemoteUserCouponFallbackFactory implements FallbackFactory<RemoteUserCouponService> {
    @Override
    public RemoteUserCouponService create(Throwable cause) {
        return new RemoteUserCouponService(){
            @Override
            public AjaxResult grabCoupon(BizUserCouponDto bizUserCoupon) {
                return null;
            }

            @Override
            public AjaxResult listCouponsByUserIdAndEntityId(Long userId, Long entityId) {
                return null;
            }

            @Override
            public AjaxResult consumeCoupon(BizConsumeCouponDto bizConsumeCouponDto) {
                return null;
            }

            @Override
            public AjaxResult listCouponsByUserId(Long userId) {
                return null;
            }
        };
    }
}
